# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-ecdsa
pkgver=0.19.0
pkgrel=0
pkgdesc="Python3 cryptographic signature library"
url="https://github.com/warner/python-ecdsa"
arch="noarch"
license="MIT"
depends="python3 py3-six"
makedepends="py3-setuptools"
checkdepends="py3-hypothesis py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/e/ecdsa/ecdsa-$pkgver.tar.gz"
builddir="$srcdir/ecdsa-$pkgver"

replaces="py-ecdsa" # Backwards compatibility
provides="py-ecdsa=$pkgver-r$pkgrel" # Backwards compatibility

# secfixes:
#   0.13.3-r0:
#     - CVE-2019-14859
#     - CVE-2019-14853

build() {
	python3 setup.py build
}

check() {
	py.test-3
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
7fa90c810800f453ffcdf1872f9a8448cb6081478980cc3d7f282284b4e5483c3a86dc7b1ad6c3a4f46102479e9c8493a9d16903c462383ebf09f9021c0f3217  ecdsa-0.19.0.tar.gz
"
